home *** CD-ROM | disk | FTP | other *** search
/ The Games Machine 75 / XENIATGM75.iso / Shareware / X-Setup 5.0 / _SETUP.1 / XQ ASP Adv Options 1.xpl < prev    next >
Text File  |  1998-09-18  |  1KB  |  46 lines

  1. "FILE"="Xteq Systems X-Setup Plugin 3.1"
  2. "TYPE"="1"
  3. "COUNT"="2"
  4. "UIPATH"="Internet\ASP Settings"
  5. "NAME"="Advanced Settings"
  6. "LANGUAGE"="VBScript"
  7. "TEXT 1"="Script Language"
  8. "TEXT 2"="Error Message"
  9. "DESCRIPTION 1"="Script Language: The script language used if no "@LANGUAGE=" command has been found in the ASP page."
  10. "DESCRIPTION 2"="Error Message: Specifies the message send to the client if "Send detailed error-information" is disabled."
  11. "AUTHOR"="Xteq Systems"
  12. "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
  13. "COMMENT 1"="For more information, go to http://www.xteq.com or write to TeXHeX@xteq.com."
  14. "COMMENT 2"="Version 1.1"
  15.  
  16.  
  17. sP="HKLM\System\CurrentControlSet\Services\W3SVC\ASP\Parameters\"
  18. vSL="DefaultScriptLanguage" 'SZ
  19. vEM="ScriptErrorMessage" 'SZ
  20.  
  21. Sub Plugin_Initialize 
  22.  If RegPathExists(sP) then
  23.   s=RegReadValue(sp&vsl)
  24.   SetUIElement 1,s
  25.  
  26.   s=RegReadValue(sp&vem)
  27.   SetUIElement 2,s
  28.  else
  29.   Disable
  30.  end if
  31. End Sub
  32.  
  33. Sub Plugin_CheckData(ElementIndex)
  34. End Sub
  35.  
  36. Sub Plugin_Apply(ElementIndex,ElementSubIndex)
  37.  s=GetUIElement(1)
  38.  Call RegWriteValue(sp&vsl,s,1)
  39.  
  40.  s=GetUIElement(2)
  41.  Call RegWriteValue(sp&vem,s,1)
  42. End Sub
  43.  
  44. Sub Plugin_Terminate 
  45. End Sub
  46.